package cn.com.yang.thread;

public class SubThread extends Thread{
	String name;
	public SubThread(String name) {
		this.name = name;
	}
	public void run() {
		for(int i=1 ; i<10;i++) {
			for (int j = 0; j < 1000000; j++) {
				
			}
			System.out.println(name + "��"+i+"������");
		}
		System.out.println(name + "����");
	}
	public static void main(String[] args) {
		SubThread t1 = new SubThread("�߳�1");
		t1.start();
		SubThread t2 = new SubThread("�߳�2");
		t2.start();
		System.out.println(Thread.currentThread().getName()+"ִ�����");
	}
}


